﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Text;

public partial class 系统管理_list_zjzh : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        
    }
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        String code = GridView1.DataKeys[e.RowIndex].Value.ToString();
        
        //这里添加级联删除险种表的相关信息。


        StringBuilder strSql2 = new StringBuilder();
        strSql2.Append("delete 险种表 ");
        strSql2.Append(" where code=@code ");
        SqlParameter[] parameters2 = {
					new SqlParameter("@code", SqlDbType.NVarChar,50)};
        parameters2[0].Value = code;

        
        DataBase.runExecute(strSql2.ToString(), parameters2);
       
         
    }
}
